/*jadclipse*/package javax.clear.sun.beans;
import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import java.util.Map;
import java.util.WeakHashMap;
public final class WeakCache
{
            public WeakCache()
            {
            }
            public Object get(Object obj)
            {










































/*  55*/        Reference reference = (Reference)map.get(obj);
/*  56*/        if(reference == null)
/*  57*/            return null;

/*  59*/        Object obj1 = reference.get();
/*  60*/        if(obj1 == null)
/*  61*/            map.remove(obj);

/*  63*/        return obj1;
            }
            public void put(Object obj, Object obj1)
            {










/*  77*/        if(obj1 != null)
/*  78*/            map.put(obj, new SoftReference(obj1));


/*  81*/        else/*  81*/            map.remove(obj);
            }
            public void clear()
            {




/*  89*/        map.clear();
            }
            private final Map map = new WeakHashMap();
}
